package com.kuang.demo.mapper.wx;

import com.kuang.demo.vo.wx.Goods4CommentVo;
import com.kuang.demo.vo.wx.Goods4OrderDetailVo;
import com.kuang.demo.vo.wx.Goods4OrderListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderGoodsMapper {
    List<Goods4OrderListVo> queryGoodsListByOrderId(@Param("orderId") int orderId);

    List<Goods4OrderDetailVo> queryGoodsList4OrderDetailByOrderId(@Param("orderId") Integer orderId);

    void deleteOrderById(int orderId);

    Goods4CommentVo queryOrderGoodsByOrderIdAndGoodsId(@Param("orderId") Integer orderId,
                                                       @Param("goodsId") Integer goodsId);
    void updateCommentByorderGoodsId(@Param("comment") Integer comment, @Param("id") Integer orderGoodsId);
}
